<?php

namespace App\Mappers\Game\Other\Mail;

use App\Mappers\DataMapper;

class ServerMapper extends DataMapper
{

    public function toArray()
    {
        // 平台
        $this->offsetSet('plat_code', $this->request->input('plat_code'));
        // 类型
        $this->offsetSet('type', $this->request->input('type'));
        // 内容参数
        $this->offsetSet('body_param', $this->request->input('body_param', []));
        // 附件参数
        $this->offsetSet('annex', $this->request->input('annex', []));
        // 过期时间
        $this->offsetSet('expire_time', $this->request->input('expire_time'));

        return $this->getArrayCopy();
    }
}
